﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Restrito/Site.Master" AutoEventWireup="true" CodeBehind="frmPessoa.aspx.cs" Inherits="WEB.Restrito.Criar.frmPessoa" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

  <asp:UpdatePanel ID="updPanel" runat="server">
        <ContentTemplate>

            <div align="center">
                <div class="alert-message error">
                    <asp:Label ID="lblErro" runat="server" Font-Bold="True"></asp:Label>
                </div>
                <div class="alert-message success">
                    <asp:Label ID="lblSucesso" runat="server" Font-Bold="True" ></asp:Label>
                </div>
                <div class="alert-message alert">
                    <asp:Label ID="lblAlerta" runat="server" Font-Bold="True" ></asp:Label>
                </div>
            </div>

            <asp:MultiView ID="mtv" runat="server">
                <asp:View ID="viewListagem" runat="server" >
                    <asp:Panel ID="pnlListagem" runat="server" DefaultButton="btnSalvar">
                        <div style="float: left; height: auto; width:100%; border-bottom:1px solid #CCC; "> 
                            <h3><asp:Image ID="Titulo_Imagem" runat="server" ImageUrl="~/Images/Icons/icon_panel_new.png" /> Pessoa - Criar<asp:Label ID="Label1" runat="server" Text="" CssClass="lbl" /></h3> 
                        </div>

                        <br clear="all" />

                        <div style="float: left; height: auto; width:100%; margin-top:10px;">
                            <div style="float:left; margin-left:0px;">
                                <asp:Label ID="Label2" runat="server" AssociatedControlID="txtID" Width="60px" Text="IDentificador:" CssClass="lbl" /><br />
                                <asp:TextBox ID="txtID" runat="server" Width="120px" CssClass="readOnly"  MaxLength="30" ReadOnly="true"></asp:TextBox>
                            </div>

                            <div style="float:left; margin-left:10px;">
                                <asp:Label ID="lbDecricao" runat="server" AssociatedControlID="txtNomeCompleto" Width="60px" Text="Nome Completo:" CssClass="lbl" /><br />
                                <asp:TextBox ID="txtNomeCompleto" runat="server" Width="440px" CssClass="textBox"  MaxLength="300" ></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RFV_txtNomeCompleto" ControlToValidate="txtNomeCompleto" runat="server" Display="None" ErrorMessage="Por favor, preencha o campo Nome Completo."></asp:RequiredFieldValidator>
                                <asp:ValidatorCalloutExtender ID="VCE_txtNomeCompleto" runat="server" Enabled="True" TargetControlID="RFV_txtNomeCompleto"> </asp:ValidatorCalloutExtender>
                            </div>
                        </div>

                        <br clear="all" />

                        <div style="float: left; height: auto; width:100%; margin-top:0px;">

                            <div style="float:left; margin-left:0px;">
                                <asp:Label ID="Label3" runat="server" AssociatedControlID="txtEmail" Width="60px" Text="Email:" CssClass="lbl" /><br />
                                <asp:TextBox ID="txtEmail" runat="server" Width="300px" CssClass="textBox"  MaxLength="200" ></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RFV_txtEmail" ControlToValidate="txtEmail" runat="server" Display="None" ErrorMessage="Por favor, preencha o campo Email."></asp:RequiredFieldValidator>
                                <asp:ValidatorCalloutExtender ID="VCE_txtEmail" runat="server" Enabled="True" TargetControlID="RFV_txtEmail"> </asp:ValidatorCalloutExtender>
                            </div>

                            <div style="float:left; margin-left:10px;">
                                <asp:Label ID="Label4" runat="server" AssociatedControlID="txtCPF" Width="60px" Text="CPF:" CssClass="lbl" /><br />
                                <asp:TextBox ID="txtCPF" runat="server" Width="120px" CssClass="textBox"  MaxLength="100" ></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RFV_txtCPF" ControlToValidate="txtCPF" runat="server" Display="None" ErrorMessage="Por favor, preencha o campo CPF."></asp:RequiredFieldValidator>
                                <asp:ValidatorCalloutExtender ID="VCE_txtCPF" runat="server" Enabled="True" TargetControlID="RFV_txtCPF"> </asp:ValidatorCalloutExtender>
                            </div>


                            <div style="float:left; margin-left:10px;">
                                <asp:Label ID="Label5" runat="server" AssociatedControlID="txtCPF" Width="60px" Text="Senha:" CssClass="lbl" /><br />
                                <asp:TextBox ID="txtSenha" runat="server" Width="120px" CssClass="textBox"  MaxLength="100" ></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RFV_txtSenha" ControlToValidate="txtSenha" runat="server" Display="None" ErrorMessage="Por favor, preencha o campo Senha."></asp:RequiredFieldValidator>
                                <asp:ValidatorCalloutExtender ID="VCE_txtSenha" runat="server" Enabled="True" TargetControlID="RFV_txtSenha"> </asp:ValidatorCalloutExtender>
                            </div>
                        </div>

                        <br clear="all" />

                        <div style="float: left; height: auto; width:100%; margin-top:0px;">
                            <div style="float:left; margin-left:0px;">
                                <asp:Label ID="Label6" runat="server" AssociatedControlID="ddlPapel" Width="60px" Text="Papel:" CssClass="lbl" /><br />
                                 <asp:DropDownList ID="ddlPapel" runat="server" CssClass="ddList"></asp:DropDownList>
                                <asp:RequiredFieldValidator ID="RFV_ddlPapel" ControlToValidate="ddlPapel" runat="server" Display="None" InitialValue="- -" ErrorMessage="Por favor, informe o campo Papel."></asp:RequiredFieldValidator>
                                <asp:ValidatorCalloutExtender ID="VCE_ddlPapel" runat="server" Enabled="True" TargetControlID="RFV_ddlPapel"> </asp:ValidatorCalloutExtender>
                            </div>
                        </div>

                        <br clear="all" />

                        <div style="float:left; height:auto; margin-top:20px; width:50%;">
                            <asp:Button ID="btnSalvar" runat="server" Text="Salvar" CssClass="btn primary" OnClick="btnSalvar_Click" />
                            <asp:Button ID="btnVoltar" runat="server" Text="Voltar" CssClass="btn close"  CausesValidation="false" />
                        </div>
                    </asp:Panel>
                 </asp:View>
            </asp:MultiView>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>